Skip to content

Add Spark job performance tuning skill and prompt - #60

Merged
rmkr-dev merged 2 commits into
mainfrom
skillbook/spark-job-tuning
Oct 16, 2026
Merged

rmkr-dev merged 2 commits into
mainfrom
skillbook/spark-job-tuning

Conversation

@rmkr-dev

Copy link
Copy Markdown
Owner

Summary

Adds a paired Skillbook skill and Promptbook prompt for Spark job performance tuning — the first data-platform entry focused on runtime performance rather than pipeline design.

  • Skill: spark-job-tuning-guardrails — baseline first on representative data, read the physical plan (explain(mode="formatted"), SQL tab) before touching configs, keep AQE on and tune its thresholds instead of disabling it, prune/filter before joins, broadcast only reliably small sides, confirm skew from stage metrics (max vs p75) and handle what AQE can't see with pre-aggregation / hot-key isolation / salting, size shuffle partitions by bytes, treat spill as a partitioning signal, cache only reused results, prefer built-ins or pandas UDFs over row UDFs, write healthy file sizes with compaction, keep stats fresh, and keep tuning configs in the job definition with evidence. Includes Copilot / Claude Code / Codex placement notes. Points contracts, idempotency, and PII at data-platform-pipeline-review rather than repeating them.
  • Prompt: tune-spark-job-performance — one-shot task with {{JOB_PATH}} / {{PLATFORM}} / {{SPARK_VERSION}} / {{INPUTS}} / {{OUTPUT}} / {{SYMPTOM}} / {{EVIDENCE}} / {{CLUSTER}} / {{TARGET}} placeholders to inventory the job, diagnose hotspots from the plan and stage metrics, apply one fix per hotspot in a fixed priority order, and return a hotspot table, a minimal diff, and a before/after metrics comparison with output-correctness checks.

Catalogs: 30 → 31 skills, 30 → 31 prompts.

Test plan

  • node scripts/site-check.mjs locally (OK, 0 warnings)
  • PR site-checks workflow green

@rmkr-dev
rmkr-dev merged commit 9f7ca3e into main Oct 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant